package com.holdtime.jtt809dataservice.client.process;

import com.holdtime.jtt809dataservice.common.event.ClientMessageReceiveEvent;
import com.holdtime.jtt809dataservice.common.process.ClientProtocolProcessor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import protocol.jtt809.JTT809Packet;
import protocol.jtt809.body.RawBody;
import protocol.jtt809.body.UpLinktestRsp;

/**
 * author: sunwei
 * Date: 2025/3/22 22:30
 * Description:
 */
@Slf4j
@Component
public class ClientUpLinkTestRspProcessor implements ClientProtocolProcessor {
    @Override
    public int getMsgID() {
        return UpLinktestRsp.MSG_ID;
    }

    @Override
    public void process(ClientMessageReceiveEvent event) {
        JTT809Packet<RawBody> source = event.getSource();
        log.info("收到上级平台发送的主链路保持应答消息,jrm:{}", source.getMsgGnsscenterid());
    }
}
